<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePackPivotAssetTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('pack_pivot_asset', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('pack_id')->comment('整体妆容id');
			$table->integer('asset_id')->comment('素材id');
			$table->boolean('index')->default(0)->comment('关联panx_assets表的id，单个素材内的画法或形状的索引 ');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('pack_pivot_asset');
	}

}
